import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const routes = [


  {
    path:'/',
    name:'home',
    component:HomeView
  },
  {
    path: '/route',
    name: 'route',
    component: () => import('../views/RouteView.vue') // 路线图页面
  },
  {
    path: '/community',
    name: 'community',
    component: () => import('../views/CommunityView.vue') // 飞云社区页面
  },
  {
    path: '/mine',
    name: 'mine',
    component: () => import('../views/MineView.vue') // 我的页面
  },
  {
    path: '/login-register',
    name: 'login-register',
    component: () => import('../views/LoginRegisterView.vue') // 登录/注册页面
    
  },
  {
    path:'/ruanjian',
    name:'ruanjian',
    component: () =>import('../views/RoadmapView/ruanjian.vue')
  },
  {
    path:'/jisuanji',
    name:'jisuanji',
    component: () =>import('../views/RoadmapView/jisuanji.vue')
  },
  {
    path:'/wulianwang',
    name:'wulianwang',
    component: () =>import('../views/RoadmapView/wulianwang.vue')
  },
  {
    path:'/wangluoanquan',
    name:'wangluoanquan',
    component: () =>import('../views/RoadmapView/wangluoanquan.vue')
  },
  {
    path:'/dashuju',
    name:'dashuju',
    component: () =>import('../views/RoadmapView/dashuju.vue')
  },
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
